import request from '@/utils/request'

const Stock = {
  // 商品库存
  pageStorageGoodsStock(data) {
    return request({
      url: 'StorageGoodsStock/pageStorageGoodsStock',
      method: 'post',
      data
    })
  },
  // 锁定商品对应物料库存
  addStorageGoodsBomStockLock(data) {
    return request({
      url: 'StorageGoodsBomStockLock/addStorageGoodsBomStockLock',
      method: 'post',
      data
    })
  },
  // 库存操作日志分页列表
  pageStorageStockOperation(data) {
    return request({
      url: 'StorageStockOperation/pageStorageStockOperation',
      method: 'post',
      data
    })
  },
  // 物料库存分页列表
  pageStorageBomStock(data) {
    return request({
      url: 'StorageBomStock/pageStorageBomStock',
      method: 'post',
      data
    })
  },
  // 预警上下限，锁定预留，虚拟库存（暂时只支持单个参数修改）
  editStorageGoodsStock(data) {
    return request({
      url: 'StorageGoodsStock/editStorageGoodsStock',
      method: 'post',
      data
    })
  },
  listStorageGoodsBomStockLock(data) {
    return request({
      url: 'StorageGoodsBomStockLock/listStorageGoodsBomStockLock',
      method: 'post',
      data
    })
  }
}
export { Stock }
